import matplotlib
import matplotlib.pyplot as plt
import cv2
import numpy as np

# 测试matplotlib
print("Matplotlib版本:", matplotlib.__version__)

# 测试OpenCV
print("OpenCV版本:", cv2.__version__)

# 创建一个简单的图像测试
img = np.random.rand(100, 100, 3)
plt.imshow(img)
plt.title("测试图像")
plt.show()

print("安装成功！")